<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>CSS简介 | 学习笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="Jiesen">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../CSS/CSS选择器.html" />
    
    
    <link rel="prev" href="../HTML5/iframe标签.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="3"
        data-chapter-title="CSS简介"
        data-filepath="CSS/CSS简介.md"
        data-basepath=".."
        data-revision="Sun Sep 23 2018 15:52:51 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="HTML/HTML.html">
            
                
                    <a href="../HTML/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="HTML/html简介.html">
            
                
                    <a href="../HTML/html简介.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        html简介
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="HTML/a链接.html">
            
                
                    <a href="../HTML/a链接.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a链接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="HTML/标签.html">
            
                
                    <a href="../HTML/标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="HTML/img.html">
            
                
                    <a href="../HTML/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        img
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="HTML/列表.html">
            
                
                    <a href="../HTML/列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="HTML/form表单.html">
            
                
                    <a href="../HTML/form表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="HTML/常用from表单类型.html">
            
                
                    <a href="../HTML/常用from表单类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        常用from表单类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="HTML/tabel表格.html">
            
                
                    <a href="../HTML/tabel表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        tabel表格
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="HTML5/HTML5新增元素.html">
            
                
                    <a href="../HTML5/HTML5新增元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        HTML5新增元素
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="HTML5/audio和vedio元素.html">
            
                
                    <a href="../HTML5/audio和vedio元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        audio和vedio元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="HTML5/iframe标签.html">
            
                
                    <a href="../HTML5/iframe标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="3" data-path="CSS/CSS简介.html">
            
                
                    <a href="../CSS/CSS简介.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        CSS简介
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="CSS/CSS选择器.html">
            
                
                    <a href="../CSS/CSS选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        CSS选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >学习笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x548C;&#x5BF9;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x517C;&#x5BB9;&#x6027;">CSS&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x548C;&#x5BF9;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x517C;&#x5BB9;&#x6027;</h1>
<h2 id="&#x4E00;&#x3001;&#x5F15;&#x5165;&#x65B9;&#x5F0F;">&#x4E00;&#x3001;&#x5F15;&#x5165;&#x65B9;&#x5F0F;</h2>
<p>1.&#x9875;&#x5185;&#x5F15;&#x5165;</p>
<p> <code>&lt;style type=&quot;text/css&quot;&gt;</code></p>
<p>2.&#x9875;&#x5916;&#x5F15;&#x5165;</p>
<p><code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/style.css&quot;/&gt;</code></p>
<ol>
<li>&#x884C;&#x5185;&#x5F15;&#x5165;&#x65B9;&#x5F0F;</li>
</ol>
<p>&#x884C;&#x5185;&#x5F15;&#x7528;&#x662F;&#x6307;&#xFF0C;&#x5C06;CSS&#x4EE3;&#x7801;&#x76F4;&#x63A5;&#x5199;&#x5728;HTML&#x6807;&#x7B7E;&#x4E2D;&#x7684;style&#x5C5E;&#x6027;&#x91CC;&#x3002;
&#x6CE8;&#x610F;&#xFF1A;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x7684;&#x5F15;&#x5165;CSS&#xFF0C;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x5199;&#x9009;&#x62E9;&#x7B26;&#x7684;&#x3002;</p>
<p>&#x4F8B;&#x5B50;&#xFF1A;</p>
<p>index.html</p>
<p>  ...<body style="background-color:#ccccc;"></body></p>
<pre><code>&lt;h1 style=&quot;font-size:12px; color:#ff0000;&quot;&gt;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6807;&#x9898;&lt;/h1&gt;
</code></pre><p>&lt;/body&gt;</p>
<h2 id="&#x4E8C;&#x3001;css&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x517C;&#x5BB9;&#x6027;">&#x4E8C;&#x3001;css&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x517C;&#x5BB9;&#x6027;</h2>
<table>
<thead>
<tr>
<th>&#x524D;&#x7F00;</th>
<th style="text-align:right">&#x6D4F;&#x89C8;&#x5668;</th>
</tr>
</thead>
<tbody>
<tr>
<td>webkit-</td>
<td style="text-align:right">Chrome&#x548C;Safari</td>
</tr>
<tr>
<td>-moz-</td>
<td style="text-align:right">Firefox</td>
</tr>
<tr>
<td>-ms-</td>
<td style="text-align:right">IE</td>
</tr>
<tr>
<td>-o-</td>
<td style="text-align:right">Oper</td>
</tr>
</tbody>
</table>
<h2 id="&#x4E09;&#x3001;css&#x6837;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x522B;">&#x4E09;&#x3001;CSS&#x6837;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x522B;</h2>
<ol>
<li>css&#x6837;&#x5F0F;&#x4F18;&#x5148;&#x7EA7;&#xFF1A;&#xFF08;&#x6CA1;&#x6709;&#x7EDD;&#x5BF9;&#x7684;&#xFF09;&#xFF0C;&#x540E;&#x6765;&#x5C45;&#x4E0A;</li>
<li>important&gt;&#x884C;&#x5185;&gt;&#x9875;&#x5185;&gt;&#x9875;&#x5916;&#xFF08;&#x53D7;&#x5230;&#x5F15;&#x5165;&#x987A;&#x5E8F;&#x7684;&#x5F71;&#x54CD;&#xFF09;<ol>
<li>!important&#x8981;&#x614E;&#x7528;&#xFF0C;&#x56E0;&#x4E3A;&#x4F18;&#x5148;&#x7EA7;&#x8FC7;&#x9AD8;&#xFF0C;&#x4E00;&#x7ECF;&#x4F7F;&#x7528;&#xFF0C;&#x540E;&#x7EED;&#x6837;&#x5F0F;&#x9700;&#x8981;&#x8986;&#x76D6;&#x65F6;&#xFF0C;&#x4E5F;&#x8981;&#x7528;&#xFF01;important
&#x9009;&#x62E9;&#x5668;&#x7684;&#x6743;&#x503C;&#x7D2F;&#x52A0;&#x4E5F;&#x4F1A;&#x5F71;&#x54CD;&#x4F18;&#x5148;&#x7EA7;</li>
</ol>
</li>
</ol>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../HTML5/iframe标签.html" class="navigation navigation-prev " aria-label="Previous page: iframe标签"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../CSS/CSS选择器.html" class="navigation navigation-next " aria-label="Next page: CSS选择器"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
